package com.rf.richfitwheel.workflow.feignclient;


import com.rf.richfitwheel.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "richfitwheel-admin-server/sys/dic")
public interface SysDicFeign {
    /**
     * 根据字典编号取字典数据
     *
     * @param classCode
     * @return
     */
    @GetMapping("/getDiclist/{classCode}")
    public R getDiclist(@PathVariable("classCode") String classCode);

    /**
     * 根据字典编号取字典数据
     *
     * @param classCode
     * @return
     */
    @GetMapping("/getDicByClassCodeAndDataCode/{classCode}/{dataCode}")
    public R getDicByClassCodeAndDataCode(@PathVariable("classCode") String classCode, @PathVariable("dataCode") String dataCode);
}
